from django.db import models
from django.contrib.auth.models import Group

# Create your models here.

class Indexes(models.Model):
    id =  models.AutoField(primary_key=True)
    index_name = models.CharField(max_length=16,null=True,blank=True)
    groups = models.ManyToManyField(Group, blank=True)

    def __str__(self):
        return self.index_name